<template>
	<view>
		<view class="list">
			<view class="item" @click="setPass">
				<text>修改密码</text>
				<image src="https://www.atuanjian.com/appletStatic/static/right.png" mode="aspectFit"></image>
			</view>
			<view class="item" @click="setInfo">
				<text>修改会员信息</text>
				<image src="https://www.atuanjian.com/appletStatic/static/right.png" mode="aspectFit"></image>
			</view>
			<view class="item" @click="changCount">
				<text>切换账号</text>
				<image src="https://www.atuanjian.com/appletStatic/static/right.png" mode="aspectFit"></image>
			</view>
			<view class="item" @click="feedBack">
				<text>意见反馈</text>
				<image src="https://www.atuanjian.com/appletStatic/static/right.png" mode="aspectFit"></image>
			</view>
		</view>
		<view class="logOut"  @click="logout">退出登录</view>
		<u-modal :show="showModel" cancelText="取消" cancelColor="#999999" :closeOnClickOverlay="true" :showCancelButton="true" confirmText="退出" confirmColor="#FFB850" title="您真的要退出吗？" :zoom="true" @close="closeModal" @confirm="confirm" @cancel="cancel"></u-modal>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				showModel:false
			}
		},
		methods: {
			setInfo(){
				uni.navigateTo({
					url:'/pagesB/login/info?type='+'edit'
				})
			},
			setPass(){
				uni.navigateTo({
					url:'/pages/mine/changPass'
				})
			},
			changCount(){
				uni.navigateTo({
					url:'/pages/mine/changeCount'
				})
			},
			feedBack(){
				uni.navigateTo({
					url:'/pages/mine/feed'
				})
			},
			logout(){
				this.showModel=true
			},
			closeModal(){
				this.showModel=false
			},
			confirm(){
				uni.clearStorageSync()    
				this.showModel=false
				uni.reLaunch({
					url:'/pagesB/login/login'
				})
				
			},
			cancel(){
				this.showModel=false
			},
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #F5F5F5;
	}
	.list{
		background-color: #FFFFFF;
		padding: 0 32rpx;
		.item{
			padding: 32rpx 0;
			display: flex;
			justify-content: space-between;
			align-items: center;
			border-bottom: 1px solid #ECECEC;
			text{
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 400;
				line-height: 40rpx;
				color: #1A1A1A;
			}
			image{
				width: 24rpx;
				height: 26rpx;
			}
		}
	}
	.logOut{
		margin-top: 64rpx;
		background-color: #FFFFFF;
		line-height: 104rpx;
		text-align: center;
		font-size: 32rpx;
		font-family: PingFang SC;
		font-weight: 400; 
		color: #FF6D1E;
	}
</style>
